
function  is_boot_disk()
{    
         disk=$1
	 parted /dev/${disk} print | grep boot
	 ret=$?
	 if [ $ret == 0 ] ; then
	    return 1
	 else 
	    return 0
	 fi
	 
}

function main()
{
	osd_disk=$1
        is_boot_disk $osd_disk
	ret=$?
	if [ $ret -eq 1 ]; then
	    echo "$osd_disk is boot disk" >> /var/log/ceph/insert-osd.log
		return 0;
	else
	    echo "$osd_disk is not boot disk" >>/var/log/ceph/insert-osd.log
	fi
 
        echo "do other things"

}

main $1
